package ioc;

public class A {
	private B b;
//	public A() {
//		System.out.println("new A()");
//	}
	
	public A(B b) {
		System.out.println("new A(B)");
		this.b = b;
	}

	public void service(){
		System.out.println("service()");
		b.f1();
	}
}
